package com.rcloud.server.sealtalk.domain;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;

/**
 * 用户邀请记录表
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Table(name = "invite_user_record")
public class InviteUserRecord {
    /**
     * 主键
     */
    @Id
    @Column(name = "id")
    private Integer id;

    /**
     * 邀请用户ID
     */
    @Column(name = "`user_id`")
    private Integer userId;

    /**
     * 被邀请人ID
     */
    @Column(name = "invite_user_id")
    private Integer inviteUserId;

    /**
     * 被邀请用户手机号
     */
    @Column(name = "mobile")
    private String mobile;

    /**
     * 邀请用户昵称
     */
    @Column(name = "`nickname`")
    private String nickname;

    /**
     * 邀请日期
     */
    @Column(name = "invite_time")
    private Date inviteTime;
}